package com.ymttest.database.mongo.converter;

import java.math.BigDecimal;

import org.springframework.core.convert.converter.Converter;

public class BigDecimalToLongConverter implements Converter<BigDecimal, Long> {

	@Override
	public Long convert(BigDecimal source) {
		return source.multiply(new BigDecimal(100)).longValue();
	}
}
